<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>后台管理中心</title>
    <link rel="stylesheet" href="/static/aesst/css/pintuer.css">
    <link rel="stylesheet" href="/static/aesst/css/admin.css">
    <script src="/static/aesst/js/jquery.js"></script>
</head>
<body style="background-color:#f2f9fd;">
<div class="header bg-main">
    <div class="logo margin-big-left fadein-top">
        <h1><img src="/static/aesst/images/y.jpg" class="radius-circle rotate-hover" height="50" alt="" />宏大考试系统-学生端</h1>
    </div>
</div>

<div class="panel admin-panel">
    <div class="panel-head"><strong class="icon-reorder"> 内容列表</strong></div>
    <div class="padding border-bottom">
    </div>
    <table class="table table-hover text-center">
        <tr>
            <th width="15%">考试名</th>
            <th width="10%">编号</th>
            <th width="10%">时长</th>
            <th width="10%">命题人</th>
            <th width="20%">操作</th>
        </tr>

        <?php foreach($tests as $key=>$tests): ?>
            <tr>
                <td><?php echo $tests['title'];?></td>
                <td><?php echo $tests['number'];?></td>
                <td><?php echo $tests['times'];?></td>
                <td><?php echo $tests['name'];?></td>

                <td>
                    <form method="post" class="form-x" action="<?php echo url("index/mark/doAdd");?>">
                        <input type="hidden"  name="admin" value="<?php echo $student['id']?>"/>
                        <input type="hidden"  name="number" value="<?php echo $tests['number'];?>"/>
                        <input type="hidden"  name="title" value="<?php echo $tests['title'];?>"/>
                        <input type="hidden"  name="timea" value="<?php echo (date( 'H')*3600+date( 'i')*60+date( 's')) ;?>"/>
                            <input type="submit" id="form-btn" value="进入考场"  class="btn">
                    </form>
                </td>
            </tr>
        <?php endforeach; ?>

    </table>
</div>
<div  style="text-align:center;margin-top:20px"><a class="button button-little bg-red" href="<?php echo url("index/indexs/index") ?>"> 退出考试大厅</a> </div>

</body>
</html>